home *** CD-ROM | disk | FTP | other *** search
- Path: news.tamu.edu!tam2000!kal4851
- From: kal4851@tam2000.tamu.edu (Kevin Anthony Lamonte)
- Newsgroups: comp.lang.c
- Subject: controlling stdin/out w/ child process
- Date: 21 Feb 1996 01:28:10 GMT
- Organization: Texas A&M University, College Station, TX
- Message-ID: <4gdsfa$1ig@news.tamu.edu>
- NNTP-Posting-Host: tam2000.tamu.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- An application I'm writing needs to spawn child processes on a routine
- basis. Since the input and output for these child processes are small
- (typically under 2k), I'd like to redirect the child process's
- stdin/stdout to my already-opened streams.
-
- I _could_ write the streams to files, and just issue a system() call, but
- I'd like a method that would be a little more portable (I need this to
- ultimately run on Solaris, SunOS, AIX, and possibly VMS (yuk) ) and touch
- the disk as little as possible. Is there any way, even if a trifle
- undocumented, to do this?
-
- --
- -----------------------------------------------------------------
- Kevin Lamonte | On what conclusions do you justify
- kal4851@tam2000.tamu.edu | those facts?
-